<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ include file="/WEB-INF/jspf/jsDefault.jspf" %>
<f:view>
    <html>
        <head>
            <%@ include file="/WEB-INF/jspf/header.jspf" %>
        </head>
        <body>
            <%@ include file="/WEB-INF/jspf/controlloAmministratore.jspf" %>
            <div id="main">
                <header>
                    <div id="logo">
                        <%@ include file="/WEB-INF/jspf/logoContent.jspf" %>
                    </div>
                    <nav id="barraMenu">
                        <div id="menu_container">
                            <ul class="sf-menu" id="nav">
                                <h:form>
                                    <%@ include file="/WEB-INF/jspf/menu/admin.jspf" %>
                                </h:form>
                            </ul>
                        </div>
                    </nav>
                </header>
                <div id="site_content">
                    <div id="sidebar_container">
                        <%@ include file="/WEB-INF/jspf/loggedForm.jspf" %>
                    </div>
                    <div class="content" style="text-align: center">

                        <div id="accordion">
                            <!-- PRIMO TAB -->
                            <h3>
                                Aggiungi Competenza
                            </h3>
                            <div>
                                <h:form>
                                    <h:outputText value="#{CompetenzeBean.message}" />
                                    <table>
                                        <td class="tdRegistrazione">Nome della materia:</td>
                                        <td class="tdRegistrazione2">
                                            <h:inputText id="nome" value="#{CompetenzeBean.materia}">
                                            </h:inputText>
                                        </td>
                                    </table>
                                    <table align="right">
                                        <td>
                                            <h:commandButton id="aggiungi" value="Aggiungi" action="#{CompetenzeBean.aggiungi}" styleClass="ui-button ui-widget ui-state-default"/>
                                        </td>
                                    </h:form>
                                    <td>
                                        <h:form>
                                            <h:commandButton value="Annulla" type="submit" action="AdminUtility.jsp" styleClass="ui-button ui-widget ui-state-default"/>
                                        </h:form>
                                    </td>
                                </table>
                            </div>
                            <!-- SECONDO TAB -->
                            <h3>
                                Elimina Competenza
                            </h3>
                            <div>
                                <h:form>     
                                    <table>
                                        <td>Seleziona competenza: </td>
                                        <td>
                                            <h:selectOneMenu id="sede" value="#{CompetenzeBean.id}" >
                                                <f:selectItems value="#{CompetenzeBean.listaCompetenze}" />
                                            </h:selectOneMenu>
                                        </td>
                                    </table>
                                    </table>
                                    <table align="right">
                                        <td>
                                            <h:commandButton id="elimina" value="Elimina" action="#{CompetenzeBean.elimina}" styleClass="ui-button ui-widget ui-state-default"/>
                                        </td>
                                    </h:form>
                                    <td>
                                        <h:form>
                                            <h:commandButton value="Annulla" type="submit" action="AdminUtility.jsp" styleClass="ui-button ui-widget ui-state-default"/>
                                        </h:form>
                                    </td>
                                </table>
                            </div>

                        </div>
                    </div>
                </div>
                <footer>
                    <p>Copyright &copy; FF-RL 2014</p>
                </footer>
            </div>
            <p>&nbsp;</p>
            <!-- javascript at the bottom for fast page loading -->
            <%@ include file="/WEB-INF/jspf/animazioneAccordion.jspf" %>
            <%@ include file="/WEB-INF/jspf/menu/scriptAnimazioneMenu.jspf" %>
            <%@ include file="/WEB-INF/jspf/about/contatti.jspf" %>
        </body>
    </html>
</f:view>